import {ApplicationConfig, provideZoneChangeDetection} from '@angular/core';
import {provideRouter} from '@angular/router';
import {provideAnimations} from '@angular/platform-browser/animations';

import {routes} from './app.routes';

import {cneConfig} from '@core/cne.config';

/**
 * 应用配置
 */
export const appConfig: ApplicationConfig = {
  providers: [
    provideZoneChangeDetection({eventCoalescing: true}),

    // 动画支持
    provideAnimations(),

    // 路由配置
    provideRouter(routes),

    // 核心配置
    ...cneConfig.providers,
  ]
};
